package br.com.nrti.still;

import java.util.Calendar;

public class Util {
	public static String formataHora(int hora, int minuto) {
		return pad(hora) + ":" + pad(minuto);
	}

	public static String formataData(int dia, int mes, int ano) {
		return pad(dia) + "/" + pad(mes + 1) + "/" + pad(ano);
	}

	public static String pad(int c) {
		if (c >= 10)
			return String.valueOf(c);
		else
			return "0" + String.valueOf(c);
	}
}
